import request from '@/utils/request'
import qs from 'qs'

//01、读取站点汇总数据
export function totalInfo(data) {
  return request({
    url: '/statistics/totalInfo',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//01、读取站点汇总数据 新 
export function totalInfoByTime(data) {
  return request({
    url: '/statistics/totalInfoByTime',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//07、按文章作者统计-汇总
export function countNumByAuthor(data) {
  return request({
    url: '/statistics/countNumByAuthor/total',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//  08、按文章作者统计-查看本月列表详情
export function countNumByAuthorBymonth(data) {
  return request({
    url: '/statistics/countNumByAuthor/month',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//  09、按文章作者统计-查看本月列表详情
export function countNumByAuthorByAll(data) {
  return request({
    url: '/statistics/countNumByAuthor/all',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}

//  11、按投稿部门统计-汇总
export function countNumByDept(data) {
  return request({
    url: '/statistics/countNumByDept/total',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//  12、按投稿部门统计-查看本月列表详情
export function countNumByDeptByMonth(data) {
  return request({
    url: '/statistics/countNumByDept/month',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//  13、按投稿部门统计-查看全部列表详情
export function countNumByDeptByAll(data) {
  return request({
    url: '/statistics/countNumByDept/all',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
// 02、按网站栏目统计-汇总
export function countNumForChannels(data) {
  return request({
    url: '/statistics/countNumForChannels',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//03、按网站栏目统计-按投稿人员查看栏目统计
export function countNumForChannelByPerson(data) {
  return request({
    url: '/statistics/countNumForChannelByPerson',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//05、按网站栏目统计-按投稿人员查看栏目列表详情
export function listForChannelByPerson(data) {
  return request({
    url: '/statistics/listForChannelByPerson',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//04、按网站栏目统计-按投稿部门查看栏目统计
export function countNumForChannelByDept(data) {
  return request({
    url: '/statistics/countNumForChannelByDept',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}
//06、按网站栏目统计-按投稿部门查看栏目列表详情
export function listForChannelByDept(data) {
  return request({
    url: '/statistics/listForChannelByDept',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}



//  10、省公司网站采用信息统计表
export function sgsUsedInfoCount(data) {
  return request({
    url: '/statistics/sgsUsedInfoCount',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    method: 'POST',
    data: qs.stringify(data)
  })
}











